package com.pingsky.apm.agent.core.service.message;

import com.google.protobuf.GeneratedMessageV3;

public class TopicMessage {
    private String topic;
    private GeneratedMessageV3 message;

    public TopicMessage(String topic, GeneratedMessageV3 message) {
        this.topic = topic;
        this.message = message;
    }

    public String getTopic() {
        return topic;
    }

    public GeneratedMessageV3 getMessage() {
        return message;
    }

    @Override
    public String toString() {
        return "Tuple{" +
                "topic=" + topic +
                ", message=" + message +
                '}';
    }
}
